<div class="row-fluid">
    <div class="navbar no-margin">
        <div class="navbar-inner">
            <ul class="breadcrumb">
                <i class="icon-chevron-left hide-sidebar"><a href='#' title="Hide Sidebar" rel='tooltip'>&nbsp;</a></i>
                <i class="icon-chevron-right show-sidebar" style="display:none;"><a href='#' title="Show Sidebar"
                                                                                    rel='tooltip'>&nbsp;</a></i>
                <li>
                    <a href="#/onduty">首页</a>
                </li>
                <li>
                    <a href="#/star/user/user_group">用户组列表</a>
                </li>
                <li class="active">用户组配置</li>
            </ul>
        </div>
    </div>
</div>

<div class="container-fluid">

    <div class="row">
        <div class="col-sm-12 col-md-12 main">
            <div class="col-md-6 col-md-offset-3">
                <!--                <form name="form" ng-keydown="if(event.keyCode==13) return false;" ng-submit="form.$valid&&olapConfigAdd()" novalidate>-->
                <form name="form" novalidate>
                    <div class="form-group"
                         ng-class="{'has-error':form.userGroupName.$error.required,'has-success':!form.userGroupName.$error.required}">
                        <label style="padding: 0 0 5px">用户组名称</label>
                        <!--                        <input type="text" class="form-control" name="resolvegroupId" ng-model="vm.p.resolvegroupId"/>-->
                        <input type="text" class="form-control" name="userGroupName" ng-model="vm.p.userGroupName"
                               required/>
                        <span ng-show="form.userGroupName.$error.required" class="help-block">请填写用户组名称</span>
                    </div>
                    <div class="form-group">
                        <label style="padding: 0 0 5px">用户列表</label>
                        <!--                        <input type="text" class="form-control" name="resolvegroupId" ng-model="vm.p.resolvegroupId"/>-->
                        <input type="text" class="form-control" name="userNames" ng-model="vm.p.userNames"/>
                    </div>
                    <div class="form-group"
                         ng-class="{'has-error':form.ownerName.$error.required,'has-success':!form.ownerName.$error.required}">
                        <label style="padding: 0 0 5px">负责人</label>
                        <!--                        <input type="text" class="form-control" name="resolvegroupId" ng-model="vm.p.resolvegroupId"/>-->
                        <input type="text" class="form-control" name="ownerName" ng-model="vm.p.ownerName" required/>
                        <span ng-show="form.ownerName.$error.required" class="help-block">请填写负责人</span>
                    </div>

                    <div class="form-group">
                        <input class="btn btn-primary" ng-class="{'disabled':!form.$valid}"
                               type="button" value="确定" ng-click="form.$valid&&addUserGroup()"/>
                        <a href="#/star/user/user_group" class="btn btn-default">返回</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div><!--/.container-->
<script type="text/javascript" charset="UTF-8" src="../lib/bootstrap/js/bootstrap-tagsinput.js"></script>
<script type="text/javascript" charset="UTF-8" src="../lib/bootstrap/js/bootstrap-tagsinput-angular.js"></script>